import { createApp } from 'vue'
import App from './App.vue'
import router, { setupRouter } from '@/router'
// 引入状态管理
import { setupStore } from '@/store'
// 引入 plugins 插件
import { setupElementPlus } from '@/plugins/elementUi/index.js'
import { setupMars2d } from '@/plugins/mars2d/index.js'
import { setupMars3d } from '@/plugins/mars3d/index.js'
// 引入共用scss
import '@/assets/styles/public.scss'
//引入动画库
import 'animate.css'
const setupAll = async () => {
    const app = createApp(App)
    setupStore(app)
    setupRouter(app)
    setupMars2d(app)
    setupMars3d(app)
    await router.isReady()
    setupElementPlus(app)
    app.mount('#app')
}
setupAll()
